// 

import http from './request'
//获取数据
export const findExaminePageList = (data) => {
    return http({
        url: '/hongyun-training/examine/findExaminePageList',
        method: 'POST',
        data
    })
}
//删除新建考试列表数据
export const deleteExamine = (id) => {
    return http({
        url: `/hongyun-training/examine/deleteExamine/${id}`,
        method: 'DELETE',
    })
}
/*****************************线下培训记录 *********************************************************/
//获取数据
export const getRecordPageList = (data) => {
    return http({
        url: '/hongyun-training/course/getRecordPageList',
        method: 'POST',
        data
    })
}
//获取培训课程下拉数据
export const getCourses = (data) => {
    return http({
        url: '/hongyun-training/course/getCourses',
        method: 'POST',
        data
    })
}
//线下培训记录提交
export const operateRecord = (data) => {
    return http({
        url: '/hongyun-training/course/operateRecord',
        method: 'POST',
        data
    })
}
//培训记录详情
export function getRecordInfo(id){
    return http({
        url: '/hongyun-training//course/getRecordInfo?id='+id,
        // url: '/mobile/equipmentrepair/detail?id='+id,
        method: 'GET',
    })
}
//培训记录删除
export const delRecord = (id) => {
    return http({
        url: `/hongyun-training/course/delRecord/${id}`,
        method: 'DELETE',
    })
}